package com.ybkj.daijia.server.service;

import com.ybkj.daijia.server.model.ShareRecord;
import java.util.Date;

/**
 * @author Shine
 */
public interface ShareRecordService {

    /**
     * 保存分享记录
     *
     * @param shareRecord
     * @return
     */
    public ShareRecord insertRecord(ShareRecord shareRecord);

    /**
     * 根据主键查询分享记录
     *
     * @param id
     * @return
     */
    public ShareRecord findOne(Long id);

    /**
     * 删除分享记录
     *
     * @param shareRecord
     */
    public void delete(ShareRecord shareRecord);

    /**
     * 根据会员id统计分享记录条数
     *
     * @param id
     * @return
     */
    public Long countByMemberId(Long id);

    /**
     * 根据会员和活动统计分享记录条数
     *
     * @param memberid
     * @param activityid
     * @param endDate
     * @param startDate
     * @return
     */
    public Long countByMemberAndActivity(Long memberid, Long activityid, Date startDate,
        Date endDate);

}
